//
//  ViewController.m
//  UI26_MJRefresh
//
//  Created by dllo on 16/1/19.
//  Copyright © 2016年 lanou.com. All rights reserved.
//

#import "ViewController.h"
#import "MJRefresh.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    UITableView *tableView = [[UITableView alloc]initWithFrame:[UIScreen mainScreen].bounds style:UITableViewStylePlain];
    [self.view addSubview:tableView];
    tableView.mj_header = [MJRefreshHeader headerWithRefreshingBlock:^{
        NSLog(@"ddd");
        tableView.backgroundColor = [UIColor redColor];
    }];
    [tableView.mj_header beginRefreshing];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
